package service.script.builtin;

import communication.MessageHelper;
import communication.ParameterizedMessage;

import service.AbstractService;
import service.ServiceRequestHandler;
import service.script.ScriptExecutionService;

public class GetLogRequestHandler extends ServiceRequestHandler {

	public GetLogRequestHandler(AbstractService service) {
		super("ScriptExecutionService::GetLog", service);
	}

	@Override
	public ParameterizedMessage handle(ParameterizedMessage message) {
		ParameterizedMessage msg = MessageHelper.buildSuccessMessage();
		msg.setAttachment(((ScriptExecutionService)this.getService()).getLog());
		return msg;
	}
	
	
	
}
